import aepApiRequest from '../utils/aepApiRequest';

export async function getConfig(mac: string, productKey: string) {
  return aepApiRequest(`/app/smart_home/device/infraredConfig/${productKey}/${mac}`, {
    method: 'GET',
  });
}


export function setConfig(mac: string, productKey: string, config: any) {
  return aepApiRequest(`/app/smart_home/device/infraredConfig/${productKey}/${mac}`, {
    method: 'POST',
    body: JSON.stringify(config)
  });
}

